package com.ght.springboot.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * @description:
 * @author: haitao.gao
 * @create: 2019-02-18 20:55
 **/
@Data
@NoArgsConstructor
public class CommentBookVo {

    /**
     * 用户姓名
     */
    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "插入时间")
    private String insertTime;

    @ApiModelProperty(value = "书名")
    private String bookName;

    @ApiModelProperty(value = "书评论")
    private String bookComment;

    @ApiModelProperty(value = "查阅的下一本书")
    private String nextBook;

    public CommentBookVo(Map<String, String> source){
        this.userName = source.get("userName");
        this.insertTime =source.get("insertTime");
        this.bookName = source.get("bookName");
        this.bookComment = source.get("bookComment");
        this.nextBook = source.get("nextBook");
    }

}
